﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MODEL;

namespace Service
{
    public class AgricultureService_Design : IAgricultureService
    {
        public Task<IEnumerable<AgricultureInfo>> QueryAgricultureInfosAsync(AgricultureQueryCriteria criteria)
        {
            return Task<IEnumerable<AgricultureInfo>>.Run(() => {
                return new List<AgricultureInfo> {
                   new AgricultureInfo{
                        UserName = "hqw",
                        MaterialsName = "test",
                        Factory = "test_factory",
                        DeadLine = DateTime.Now,
                        UsefulDeadLine = DateTime.Now,
                        FactoryAddress = "chengdu",
                        ProductionPlace = "shuangliu",
                        PhoneNum = "18380448111"
                   }
                }.AsEnumerable();
            });
        }
    }
}
